package com.atguigu.gmall.product.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.gmall.product.entity.BaseAttrValue;
import com.atguigu.gmall.product.service.BaseAttrValueService;
import com.atguigu.gmall.product.mapper.BaseAttrValueMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author lfy
* @description 针对表【base_attr_value(属性值表)】的数据库操作Service实现
* @createDate 2023-07-11 15:27:09
*/
@Service
public class BaseAttrValueServiceImpl extends ServiceImpl<BaseAttrValueMapper, BaseAttrValue>
    implements BaseAttrValueService{


    @Override
    public List<BaseAttrValue> getAttrValueList(Long attrId) {

        List<BaseAttrValue> list = this.lambdaQuery()
                .eq(BaseAttrValue::getAttrId, attrId)
                .list();

        return list;
    }
}




